﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/default.master" AutoEventWireup="true" CodeFile="NewsEdit.aspx.cs" Inherits="Administrator_NewsEdit" %>
<%@ Register assembly="FreeTextBox" TagPrefix="FTB" Namespace="FreeTextBoxControls" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
Thêm/Sửa Tin tức
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1>
        Thêm/Sửa Tin tức
    </h1>
    <table style="width:100%">
            <tr>
                <td style="height: 17px">
                    &nbsp;</td>
                <td style="height: 17px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="height: 17px">
                    Loại danh mục tin tức :</td>
                <td style="height: 17px">
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        DataSourceID="ObjectDataSource1" DataTextField="News_Type_Name" 
                        DataValueField="News_Type_ID" Height="21px" Width="260px">
                    </asp:DropDownList>
                    </td>
            </tr>
            <tr>
                <td style="height: 17px">
                    </td>
                <td style="height: 17px">
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="GetAll" TypeName="BusinessLayer.NewsType"></asp:ObjectDataSource>
                    </td>
            </tr>
            <tr>
                <td style="height: 17px">
                    &nbsp;</td>
                <td style="height: 17px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="height: 17px">
                    Tác giả :</td>
                <td style="height: 17px">
                    <asp:TextBox ID="txtTacgia" runat="server" Width="276px"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td style="height: 17px">
                    &nbsp;</td>
                <td style="height: 17px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Đề mục tin tức :</td>
                <td>
                    <asp:TextBox ID="txtTen" runat="server" 
                        Width="281px" Height="22px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="height: 19px">
                    </td>
                <td style="height: 19px">
                    </td>
            </tr>
            <tr>
                <td>
                    Nội dung tin tức :</td>
                <td>
                    <FTB:FreeTextBox ID="txtMota" runat="server" Width="400px" ></FTB:FreeTextBox></td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Trạng thái :</td>
                <td>
                    <asp:RadioButtonList ID="rbStatus" runat="server">
                        <asp:ListItem Value="10">Deleted</asp:ListItem>
                        <asp:ListItem Value="0" Selected="True">Used</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Cho phép bình luận :</td>
                <td>
                    <asp:RadioButtonList ID="rbComment" runat="server">
                        <asp:ListItem Value="false">Không cho phép</asp:ListItem>
                        <asp:ListItem Value="true" Selected="True">Cho phép</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnNew" runat="server" Text="New" onclick="btnNew_Click" 
                        Width="73px" />
                    <asp:Button ID="btnUpdate" runat="server" Text="Update" 
                        onclick="btnUpdate_Click" Width="76px" />
                </td>
                <td align="right">
                    <asp:Button ID="BbtnBack" runat="server" Text="Back to List" 
                        onclick="BbtnBack_Click" />
                </td>
            </tr>
        </table>
</asp:Content>

